projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dc2f50
)
Pacify gcc in xpm_scan
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 6 Apr 2020 17:36:51 +0000
(10:36 -0700)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 6 Apr 2020 17:37:22 +0000
(10:37 -0700)
* src/image.c (xpm_scan): Redo a loop for clarity.
This also pacifies --enable-gcc-warnings (GCC 9.3.1 x86-64 with -Og).
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index 65d59254f02ab06836f8ec85872f5356a030982a..c98ca291ca532d68f7f6fbdfc683fd43ed88d1fb 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-4572,8
+4572,9
@@
xpm_scan (const char **s, const char *end, const char **beg, ptrdiff_t *len)
while (*s < end)
{
/* Skip white-space. */
- while (*s < end && (c = *(*s)++, c_isspace (c)))
- ;
+ do
+ c = *(*s)++;
+ while (c_isspace (c) && *s < end);
/* gnus-pointer.xpm uses '-' in its identifier.
sb-dir-plus.xpm uses '+' in its identifier. */